package com.dmall.opening.up.records;

import com.dmall.opening.up.records.exception.BizException;

public class OwnOrderRecord extends OrderRecord {

    @Override
    public void cancel() {
        this.status = Status.CANCELED;
        final int affected = mapper.cancel(this);
        if (affected != 1) {
            throw BizException.unsupportedOperation();
        }
    }
}
